$(function() {
	
});

load_floor_checkbox_by_buildingId = function(buildingId) {
	$('#floor_checkbox').html('');

	find_basic_by_json(path+'/floor/find', {buildingId: buildingId}, function(response) {
		for(var i=0; i<response.data.length; i++) {
			$('#floor_checkbox').append('<span class="floor-checkbox" style="display:inline;float:left;">'
			+ '<input class="magic-checkbox" type="checkbox" id="' + response.data[i].floorId + '" value="' + response.data[i].floorName + '"/>'
			+ '<label for="' + response.data[i].floorId + '" class="label_txt" style="width:100px;">' + response.data[i].floorName + '</label>'
			+ '</span>');
		}
	});
}